package com.lagou.mapper;

import com.lagou.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author bwcx_jzy
 * @since 2021/11/24
 */
@Repository
public interface UserMapper {

    @Select("select * from user where username=#{name} and password=#{password}")
    User login(@Param("name") String name, @Param("password") String password);
}
